#pragma once

void FormatLastError(DWORD errorCode, TCHAR* prefix, CString& message);

DWORD GetSystemDrives(CList<CString>& drives);
DWORD GetFreeDriveLetters(CList<CString>& freeDrives);
DWORD GetDvdDrives(CList<CString>& dvdDrives);
DWORD GetFileDiskDrives(CList<CString>& fileDiskDrives);

DWORD AddVirtualDrive(int deviceNumber, char* fileName, size_t fileSize, TCHAR driveLetter);
DWORD RemoveVirtualDrive(TCHAR driveLetter);
CString GetDriveLabel(CString selectedDrive);
